package com.example.springboot.service;

import com.example.springboot.controller.request.BookPageRequest;
import com.example.springboot.entity.Book;

import java.util.List;

public interface IBookService {
    List<Book> list();

    Object page(BookPageRequest bookPageRequest);

    void save(Book book);

    boolean borrowBook(Long bookId);

    boolean updateBook(Long bookId, Book book);

    boolean incrementTotalCopiesByTitle(String title);


    boolean canBorrowBook(Long bookId);
}
